.class public Lcom/waiqin365/lightapp/product/a/bw;
.super Lcom/waiqin365/lightapp/product/a/co;


# instance fields
.field b:Ljava/lang/String;

.field private l:Ljava/util/List;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;Ljava/lang/String;)V
    .locals 1

    invoke-direct {p0, p1, p2}, Lcom/waiqin365/lightapp/product/a/co;-><init>(Landroid/content/Context;Ljava/util/List;)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/a/bw;->l:Ljava/util/List;

    iput-object p3, p0, Lcom/waiqin365/lightapp/product/a/bw;->b:Ljava/lang/String;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/product/a/bw;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/bw;->l:Ljava/util/List;

    return-object v0
.end method


# virtual methods
.method public a(ILandroid/view/View;Landroid/view/ViewGroup;Lcom/waiqin365/base/a/b;)Landroid/view/View;
    .locals 22

    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/waiqin365/lightapp/product/a/bw;->c:Ljava/util/List;

    move/from16 v0, p1

    invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Lcom/waiqin365/lightapp/product/d/f;

    invoke-virtual {v7}, Lcom/waiqin365/lightapp/product/d/f;->a()Ljava/lang/String;

    move-result-object v2

    move-object/from16 v0, p0

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/product/a/bw;->b(Ljava/lang/String;)Lcom/waiqin365/base/db/jxccache/g;

    move-result-object v13

    const v2, 0x7f0c0a85

    move-object/from16 v0, p4

    move-object/from16 v1, p2

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    const v3, 0x7f0c0a84

    move-object/from16 v0, p4

    move-object/from16 v1, p2

    invoke-virtual {v0, v1, v3}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/RelativeLayout;

    const v3, 0x7f0c00eb

    move-object/from16 v0, p4

    move-object/from16 v1, p2

    invoke-virtual {v0, v1, v3}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    const v5, 0x7f0c0554

    move-object/from16 v0, p4

    move-object/from16 v1, p2

    invoke-virtual {v0, v1, v5}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v5

    move-object v9, v5

    check-cast v9, Landroid/widget/TextView;

    const v5, 0x7f0c0ade

    move-object/from16 v0, p4

    move-object/from16 v1, p2

    invoke-virtual {v0, v1, v5}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v5

    move-object v10, v5

    check-cast v10, Landroid/widget/TextView;

    const v5, 0x7f0c08bd

    move-object/from16 v0, p4

    move-object/from16 v1, p2

    invoke-virtual {v0, v1, v5}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Landroid/widget/TextView;

    const v5, 0x7f0c0697

    move-object/from16 v0, p4

    move-object/from16 v1, p2

    invoke-virtual {v0, v1, v5}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v14

    const v5, 0x7f0c01ee

    move-object/from16 v0, p4

    move-object/from16 v1, p2

    invoke-virtual {v0, v1, v5}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v5

    move-object v11, v5

    check-cast v11, Landroid/widget/TextView;

    const v5, 0x7f0c08ad

    move-object/from16 v0, p4

    move-object/from16 v1, p2

    invoke-virtual {v0, v1, v5}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v5

    move-object v15, v5

    check-cast v15, Lcom/waiqin365/lightapp/product/view/CountView;

    const v5, 0x7f0c096b

    move-object/from16 v0, p4

    move-object/from16 v1, p2

    invoke-virtual {v0, v1, v5}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v16

    const v5, 0x7f0c096d

    move-object/from16 v0, p4

    move-object/from16 v1, p2

    invoke-virtual {v0, v1, v5}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    const v6, 0x7f0c096c

    move-object/from16 v0, p4

    move-object/from16 v1, p2

    invoke-virtual {v0, v1, v6}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v6

    move-object v12, v6

    check-cast v12, Landroid/widget/TextView;

    const v6, 0x7f0c0a1c

    move-object/from16 v0, p4

    move-object/from16 v1, p2

    invoke-virtual {v0, v1, v6}, Lcom/waiqin365/base/a/b;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/CheckBox;

    invoke-virtual {v6, v7}, Landroid/widget/CheckBox;->setTag(Ljava/lang/Object;)V

    invoke-virtual {v4, v13}, Landroid/widget/RelativeLayout;->setTag(Ljava/lang/Object;)V

    new-instance v17, Lcom/waiqin365/lightapp/product/a/bx;

    move-object/from16 v0, v17

    move-object/from16 v1, p0

    invoke-direct {v0, v1, v6}, Lcom/waiqin365/lightapp/product/a/bx;-><init>(Lcom/waiqin365/lightapp/product/a/bw;Landroid/widget/CheckBox;)V

    move-object/from16 v0, v17

    invoke-virtual {v4, v0}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual/range {p0 .. p0}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v17

    invoke-static/range {v17 .. v17}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v17

    invoke-virtual {v7}, Lcom/waiqin365/lightapp/product/d/f;->a()Ljava/lang/String;

    move-result-object v18

    invoke-virtual/range {v17 .. v18}, Lcom/waiqin365/base/db/offlinedata/w;->d(Ljava/lang/String;)Ljava/util/List;

    move-result-object v17

    invoke-virtual/range {p0 .. p0}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v18

    invoke-static/range {v18 .. v18}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v18

    invoke-virtual {v7}, Lcom/waiqin365/lightapp/product/d/f;->a()Ljava/lang/String;

    move-result-object v19

    invoke-virtual/range {v18 .. v19}, Lcom/waiqin365/base/db/offlinedata/w;->f(Ljava/lang/String;)Lcom/waiqin365/base/db/offlinedata/s;

    move-object/from16 v0, p0

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/product/a/bw;->i:Z

    move/from16 v18, v0

    if-eqz v18, :cond_3

    const/16 v18, 0x8

    move/from16 v0, v18

    invoke-virtual {v14, v0}, Landroid/view/View;->setVisibility(I)V

    const/16 v18, 0x0

    move-object/from16 v0, v16

    move/from16 v1, v18

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :goto_0
    invoke-virtual/range {p0 .. p0}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v18

    const v19, 0x7f08068a

    invoke-virtual/range {v18 .. v19}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v18

    move-object/from16 v0, v18

    invoke-virtual {v11, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual/range {p0 .. p0}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v11

    const v18, 0x7f08068a

    move/from16 v0, v18

    invoke-virtual {v11, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v12, v11}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const/4 v11, 0x0

    invoke-virtual {v10, v11}, Landroid/widget/TextView;->setVisibility(I)V

    const-string/jumbo v11, "cx_pd_zc_cache"

    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/waiqin365/lightapp/product/a/bw;->b:Ljava/lang/String;

    invoke-virtual {v11, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v11

    if-eqz v11, :cond_4

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual/range {p0 .. p0}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v12

    const v18, 0x7f080057

    move/from16 v0, v18

    invoke-virtual {v12, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    move-object/from16 v0, p0

    iget-boolean v12, v0, Lcom/waiqin365/lightapp/product/a/bw;->i:Z

    invoke-static {v7, v12}, Lcom/waiqin365/lightapp/product/e/b;->a(Lcom/waiqin365/lightapp/product/d/f;Z)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    :goto_1
    invoke-virtual/range {p0 .. p0}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v10

    invoke-static {v10, v7}, Lcom/waiqin365/lightapp/product/e/b;->a(Landroid/content/Context;Lcom/waiqin365/lightapp/product/d/f;)Landroid/text/SpannableStringBuilder;

    move-result-object v10

    invoke-virtual {v9, v10}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v9, v7, Lcom/waiqin365/lightapp/product/d/f;->e:Ljava/lang/String;

    invoke-static {v9}, Lcom/fiberhome/gaea/client/d/k;->i(Ljava/lang/String;)Z

    move-result v10

    if-eqz v10, :cond_6

    const/16 v9, 0x8

    invoke-virtual {v3, v9}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_2
    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    if-eqz v13, :cond_11

    const v3, 0x7f020129

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    const/4 v2, 0x0

    invoke-virtual {v8, v2}, Landroid/widget/TextView;->setVisibility(I)V

    const-wide/16 v2, 0x0

    const-string/jumbo v9, "cx_pd_zc_cache"

    move-object/from16 v0, p0

    iget-object v10, v0, Lcom/waiqin365/lightapp/product/a/bw;->b:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_7

    invoke-virtual {v13}, Lcom/waiqin365/base/db/jxccache/g;->g()Ljava/lang/Double;

    move-result-object v2

    const-wide/16 v10, 0x0

    invoke-static {v2, v10, v11}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v2

    invoke-virtual {v7}, Lcom/waiqin365/lightapp/product/d/f;->M()Ljava/lang/Double;

    move-result-object v9

    const-wide/16 v10, 0x0

    invoke-static {v9, v10, v11}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v10

    sub-double/2addr v2, v10

    :cond_1
    :goto_3
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual/range {p0 .. p0}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v10

    const v11, 0x7f08025a

    invoke-virtual {v10, v11}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string/jumbo v10, "\uff1a"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v7}, Lcom/waiqin365/lightapp/product/d/f;->a()Ljava/lang/String;

    move-result-object v10

    move-object/from16 v0, p0

    iget-boolean v11, v0, Lcom/waiqin365/lightapp/product/a/bw;->i:Z

    invoke-static {v10, v2, v3, v11}, Lcom/waiqin365/lightapp/product/e/b;->a(Ljava/lang/String;DZ)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v9, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v8, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    move-object/from16 v0, p0

    iget-boolean v2, v0, Lcom/waiqin365/lightapp/product/a/bw;->i:Z

    if-eqz v2, :cond_d

    const/4 v2, 0x0

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    const/16 v2, 0x8

    invoke-virtual {v14, v2}, Landroid/view/View;->setVisibility(I)V

    invoke-virtual {v5}, Landroid/widget/LinearLayout;->removeAllViews()V

    invoke-virtual {v13}, Lcom/waiqin365/base/db/jxccache/g;->g()Ljava/lang/Double;

    move-result-object v2

    if-nez v2, :cond_9

    const-wide/16 v10, 0x0

    :goto_4
    if-eqz v17, :cond_f

    invoke-interface/range {v17 .. v17}, Ljava/util/List;->size()I

    move-result v2

    if-lez v2, :cond_f

    new-instance v12, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v2, -0x1

    const/4 v3, -0x2

    invoke-direct {v12, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/4 v2, 0x0

    move v9, v2

    :goto_5
    invoke-interface/range {v17 .. v17}, Ljava/util/List;->size()I

    move-result v2

    if-ge v9, v2, :cond_f

    move-object/from16 v0, v17

    invoke-interface {v0, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/waiqin365/base/db/offlinedata/s;

    new-instance v13, Lcom/waiqin365/lightapp/product/view/CountView;

    invoke-virtual/range {p0 .. p0}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v3

    invoke-direct {v13, v3}, Lcom/waiqin365/lightapp/product/view/CountView;-><init>(Landroid/content/Context;)V

    const/4 v3, 0x0

    invoke-virtual {v13, v3}, Lcom/waiqin365/lightapp/product/view/CountView;->b(Z)V

    const/4 v3, 0x1

    invoke-virtual {v13, v3}, Lcom/waiqin365/lightapp/product/view/CountView;->a(Z)V

    invoke-virtual {v13, v2}, Lcom/waiqin365/lightapp/product/view/CountView;->setUnit(Lcom/waiqin365/base/db/offlinedata/s;)V

    invoke-interface/range {v17 .. v17}, Ljava/util/List;->size()I

    move-result v3

    add-int/lit8 v3, v3, -0x1

    if-ne v3, v9, :cond_b

    const-wide/16 v2, 0x0

    cmpl-double v2, v10, v2

    if-lez v2, :cond_a

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v10, v11}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    :goto_6
    invoke-virtual {v13, v2}, Lcom/waiqin365/lightapp/product/view/CountView;->setCount(Ljava/lang/String;)V

    :cond_2
    :goto_7
    new-instance v2, Lcom/waiqin365/lightapp/product/a/by;

    move-object/from16 v3, p0

    invoke-direct/range {v2 .. v8}, Lcom/waiqin365/lightapp/product/a/by;-><init>(Lcom/waiqin365/lightapp/product/a/bw;Landroid/widget/RelativeLayout;Landroid/widget/LinearLayout;Landroid/widget/CheckBox;Lcom/waiqin365/lightapp/product/d/f;Landroid/widget/TextView;)V

    invoke-virtual {v13, v2}, Lcom/waiqin365/lightapp/product/view/CountView;->setDataListener(Lcom/waiqin365/lightapp/product/view/e;)V

    new-instance v2, Lcom/waiqin365/lightapp/product/a/bz;

    move-object/from16 v0, p0

    invoke-direct {v2, v0, v13}, Lcom/waiqin365/lightapp/product/a/bz;-><init>(Lcom/waiqin365/lightapp/product/a/bw;Lcom/waiqin365/lightapp/product/view/CountView;)V

    invoke-virtual {v13, v2}, Lcom/waiqin365/lightapp/product/view/CountView;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V

    if-eqz v9, :cond_c

    const/4 v2, 0x0

    invoke-virtual/range {p0 .. p0}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v3

    const/high16 v14, 0x40c00000    # 6.0f

    invoke-static {v3, v14}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    invoke-virtual/range {p0 .. p0}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v14

    const/high16 v16, 0x40c00000    # 6.0f

    move/from16 v0, v16

    invoke-static {v14, v0}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v14

    const/16 v16, 0x0

    move/from16 v0, v16

    invoke-virtual {v12, v2, v3, v14, v0}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    invoke-virtual {v5, v13, v12}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    :goto_8
    add-int/lit8 v2, v9, 0x1

    move v9, v2

    goto/16 :goto_5

    :cond_3
    const/16 v18, 0x0

    move/from16 v0, v18

    invoke-virtual {v14, v0}, Landroid/view/View;->setVisibility(I)V

    const/16 v18, 0x8

    move-object/from16 v0, v16

    move/from16 v1, v18

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    const/16 v18, 0x1

    move/from16 v0, v18

    invoke-virtual {v15, v0}, Lcom/waiqin365/lightapp/product/view/CountView;->a(Z)V

    const/16 v18, 0x0

    move/from16 v0, v18

    invoke-virtual {v15, v0}, Lcom/waiqin365/lightapp/product/view/CountView;->b(Z)V

    goto/16 :goto_0

    :cond_4
    const-string/jumbo v11, "cx_pd_hh_cache"

    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/waiqin365/lightapp/product/a/bw;->b:Ljava/lang/String;

    invoke-virtual {v11, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v11

    if-eqz v11, :cond_5

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual/range {p0 .. p0}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v12

    const v18, 0x7f080057

    move/from16 v0, v18

    invoke-virtual {v12, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    move-object/from16 v0, p0

    iget-boolean v12, v0, Lcom/waiqin365/lightapp/product/a/bw;->i:Z

    invoke-static {v7, v12}, Lcom/waiqin365/lightapp/product/e/b;->b(Lcom/waiqin365/lightapp/product/d/f;Z)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_1

    :cond_5
    const-string/jumbo v11, "cx_pd_th_cache"

    move-object/from16 v0, p0

    iget-object v12, v0, Lcom/waiqin365/lightapp/product/a/bw;->b:Ljava/lang/String;

    invoke-virtual {v11, v12}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v11

    if-eqz v11, :cond_0

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual/range {p0 .. p0}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v12

    const v18, 0x7f080057

    move/from16 v0, v18

    invoke-virtual {v12, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    move-object/from16 v0, p0

    iget-boolean v12, v0, Lcom/waiqin365/lightapp/product/a/bw;->i:Z

    invoke-static {v7, v12}, Lcom/waiqin365/lightapp/product/e/b;->c(Lcom/waiqin365/lightapp/product/d/f;Z)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v11

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_1

    :cond_6
    const/4 v10, 0x0

    invoke-virtual {v3, v10}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-virtual {v3, v9}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    :cond_7
    const-string/jumbo v9, "cx_pd_hh_cache"

    move-object/from16 v0, p0

    iget-object v10, v0, Lcom/waiqin365/lightapp/product/a/bw;->b:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_8

    invoke-virtual {v13}, Lcom/waiqin365/base/db/jxccache/g;->g()Ljava/lang/Double;

    move-result-object v2

    const-wide/16 v10, 0x0

    invoke-static {v2, v10, v11}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v2

    invoke-virtual {v7}, Lcom/waiqin365/lightapp/product/d/f;->O()Ljava/lang/Double;

    move-result-object v9

    const-wide/16 v10, 0x0

    invoke-static {v9, v10, v11}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v10

    sub-double/2addr v2, v10

    goto/16 :goto_3

    :cond_8
    const-string/jumbo v9, "cx_pd_th_cache"

    move-object/from16 v0, p0

    iget-object v10, v0, Lcom/waiqin365/lightapp/product/a/bw;->b:Ljava/lang/String;

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_1

    invoke-virtual {v13}, Lcom/waiqin365/base/db/jxccache/g;->g()Ljava/lang/Double;

    move-result-object v2

    const-wide/16 v10, 0x0

    invoke-static {v2, v10, v11}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v2

    invoke-virtual {v7}, Lcom/waiqin365/lightapp/product/d/f;->N()Ljava/lang/Double;

    move-result-object v9

    const-wide/16 v10, 0x0

    invoke-static {v9, v10, v11}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v10

    sub-double/2addr v2, v10

    goto/16 :goto_3

    :cond_9
    invoke-virtual {v13}, Lcom/waiqin365/base/db/jxccache/g;->g()Ljava/lang/Double;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v10

    goto/16 :goto_4

    :cond_a
    const-string/jumbo v2, ""

    goto/16 :goto_6

    :cond_b
    invoke-virtual {v2}, Lcom/waiqin365/base/db/offlinedata/s;->e()Ljava/lang/Double;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v18

    div-double v18, v10, v18

    move-wide/from16 v0, v18

    double-to-int v3, v0

    if-lez v3, :cond_2

    int-to-double v0, v3

    move-wide/from16 v18, v0

    invoke-virtual {v2}, Lcom/waiqin365/base/db/offlinedata/s;->e()Ljava/lang/Double;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v20

    mul-double v18, v18, v20

    sub-double v10, v10, v18

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v13, v2}, Lcom/waiqin365/lightapp/product/view/CountView;->setCount(Ljava/lang/String;)V

    goto/16 :goto_7

    :cond_c
    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-virtual/range {p0 .. p0}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v14

    const/high16 v16, 0x40c00000    # 6.0f

    move/from16 v0, v16

    invoke-static {v14, v0}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v14

    const/16 v16, 0x0

    move/from16 v0, v16

    invoke-virtual {v12, v2, v3, v14, v0}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    invoke-virtual {v5, v13, v12}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto/16 :goto_8

    :cond_d
    const/16 v2, 0x8

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    const/4 v2, 0x0

    invoke-virtual {v14, v2}, Landroid/view/View;->setVisibility(I)V

    invoke-virtual/range {p0 .. p0}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v2

    invoke-virtual {v13}, Lcom/waiqin365/base/db/jxccache/g;->h()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/db/offlinedata/w;->e(Ljava/lang/String;)Lcom/waiqin365/base/db/offlinedata/s;

    move-result-object v2

    if-nez v2, :cond_e

    invoke-virtual/range {p0 .. p0}, Lcom/waiqin365/lightapp/product/a/bw;->a()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v2

    invoke-virtual {v13}, Lcom/waiqin365/base/db/jxccache/g;->b()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/db/offlinedata/w;->f(Ljava/lang/String;)Lcom/waiqin365/base/db/offlinedata/s;

    move-result-object v2

    :cond_e
    invoke-virtual {v15}, Lcom/waiqin365/lightapp/product/view/CountView;->d()V

    invoke-virtual {v15, v2}, Lcom/waiqin365/lightapp/product/view/CountView;->setUnit(Lcom/waiqin365/base/db/offlinedata/s;)V

    invoke-virtual {v13}, Lcom/waiqin365/base/db/jxccache/g;->g()Ljava/lang/Double;

    move-result-object v2

    if-nez v2, :cond_10

    const-string/jumbo v2, ""

    invoke-virtual {v15, v2}, Lcom/waiqin365/lightapp/product/view/CountView;->setCount(Ljava/lang/String;)V

    :cond_f
    :goto_9
    new-instance v9, Lcom/waiqin365/lightapp/product/a/cb;

    move-object/from16 v10, p0

    move-object v11, v4

    move-object v12, v6

    move-object v13, v7

    move-object v14, v8

    invoke-direct/range {v9 .. v14}, Lcom/waiqin365/lightapp/product/a/cb;-><init>(Lcom/waiqin365/lightapp/product/a/bw;Landroid/widget/RelativeLayout;Landroid/widget/CheckBox;Lcom/waiqin365/lightapp/product/d/f;Landroid/widget/TextView;)V

    invoke-virtual {v15, v9}, Lcom/waiqin365/lightapp/product/view/CountView;->setDataListener(Lcom/waiqin365/lightapp/product/view/e;)V

    new-instance v2, Lcom/waiqin365/lightapp/product/a/cc;

    move-object/from16 v0, p0

    invoke-direct {v2, v0, v15}, Lcom/waiqin365/lightapp/product/a/cc;-><init>(Lcom/waiqin365/lightapp/product/a/bw;Lcom/waiqin365/lightapp/product/view/CountView;)V

    invoke-virtual {v15, v2}, Lcom/waiqin365/lightapp/product/view/CountView;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V

    return-object p2

    :cond_10
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v13}, Lcom/waiqin365/base/db/jxccache/g;->g()Ljava/lang/Double;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v10

    invoke-virtual {v2, v10, v11}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v15, v2}, Lcom/waiqin365/lightapp/product/view/CountView;->setCount(Ljava/lang/String;)V

    goto :goto_9

    :cond_11
    const v3, 0x7f02012d

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    const/16 v2, 0x8

    invoke-virtual {v14, v2}, Landroid/view/View;->setVisibility(I)V

    const/16 v2, 0x8

    move-object/from16 v0, v16

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    const/16 v2, 0x8

    invoke-virtual {v8, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_9
.end method

.method public a(Ljava/util/List;)V
    .locals 1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/product/a/bw;->m()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->clear()V

    if-eqz p1, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/product/a/bw;->m()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    :cond_0
    return-void
.end method

.method public b()I
    .locals 1

    const v0, 0x7f03021d

    return v0
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/bw;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/bw;->c:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public notifyDataSetChanged()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/bw;->k:Lcom/waiqin365/lightapp/product/c/a;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/a/bw;->k:Lcom/waiqin365/lightapp/product/c/a;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/product/a/bw;->m()Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    invoke-interface {v0, v1}, Lcom/waiqin365/lightapp/product/c/a;->a(I)V

    :cond_0
    invoke-super {p0}, Lcom/waiqin365/lightapp/product/a/co;->notifyDataSetChanged()V

    return-void
.end method
